package com.validate.fluentvalidator;

import java.util.ArrayList;
import java.util.List;

/**
 * 分组校验
 */
public class ValidatorGroup {

	private boolean groupbool = false;

	private List<String> grouplist = new ArrayList<String>();

	protected ValidatorGroup(boolean sic){
		this.groupbool = sic;
	}

	public ValidatorGroup group(String sic){
		if(groupbool){
			grouplist.add(sic);
		}
		return this;
	}

	protected String[] group(){
		String[] groupArray = {};
		return  grouplist.toArray(groupArray);
	}



}
